﻿using System.ComponentModel.DataAnnotations;

namespace GameSchoolApplication.Models
{
	public class GameInstructor
	{
		[Key]
		public int Id			{ get; set; }
		public int TeacherId	{ get; set; }
		public int GameId		{ get; set; }
		public int Points		{ get; set; }
		public string UserName	{ get; set; }
		public string Name		{ get; set; }
        [ForeignKey("TeacherId")]
        public virtual Person Teacher { get; set; }
        [ForeignKey("GameId")]
        public virtual Game Game { get; set; }
	}
}